home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyo (Python 2.5)
-
- import wx
-
- class SkinTextCtrl(wx.TextCtrl):
-
- def __init__(self, parent, **k):
- self.skinkey = k.pop('skinkey', None)
- self.skinkey_bg = k.pop('skinkey_bg', None)
- wx.TextCtrl.__init__(self, parent, **k)
- self.UpdateSkin()
-
-
- def UpdateSkin(self):
- skin = skin
- import gui
- if self.skinkey is not None:
- (loc, key) = self.skinkey
- font = skin.get(('%s.Fonts.%s' % (loc, key),), (lambda : self.Font))
- color = skin.get(('%s.FontColors.%s' % (loc, key),), (lambda : self.BackgroundColour))
- self.SetForegroundColour(color)
- f = self.Font
- f.SetFaceName(font.FaceName)
- f.SetPointSize(font.PointSize)
- self.Font = f
-
- if self.skinkey_bg is not None:
- self.SetBackgroundColour(skin.get((self.skinkey_bg,), (lambda : self.BackgroundColour)))
-
-
-
-